import request from "@/utils/request";

export default {
  getAll(data) {
    return request({
      url: `/subject/getAllR3`,
      method: "get",
    });
  },
  /**
   * 获取满足vant要求的数据结构
   * options: [
        {
          text: '浙江省',
          value: '330000',
          children: [{ text: '杭州市', value: '330100' }],
        },
        {
          text: '江苏省',
          value: '320000',
          children: [{ text: '南京市', value: '320100' }],
        },
      ],
   * @returns 
   */
  getTree() {
    return request({
      url: `/subject/getTree`,
      method: "get",
    });
  },
};
